package com.yumeng.common.data.constants;

/**
 * @author wxd
 * @date 2021/12/2 9:50
 */
public class SpecialConstants {

    public static final Integer Y = 1;
    public static final Integer N= 0;

    public static Boolean isUsefulYn(Integer yn){
        return Y.equals(yn) || N.equals(yn);
    }

    public static String ynStr(Integer yn){
        if (Y.equals(yn)){
            return "是";
        }else if (N.equals(yn)){
            return "否";
        }else {
            return "未知";
        }
    }

    /**
     * 空数据标志-0
     */
    public static final Long EMPTY_DATA_FLAG_ZERO_LONG = 0L;
    /**
     * json空值
     */
    public static final String EMPTY_DATA_FLAG_JSON = "{}";

}
